Fix offset to center the underline in requested rectangle. (Ported from
authorBehdad Esfahbod <behdad@gnome.org>
Tue, 30 May 2006 04:19:29 +0000 (04:19 +0000)
committerBehdad Esfahbod <behdad@src.gnome.org>
Tue, 30 May 2006 04:19:29 +0000 (04:19 +0000)
2006-05-30  Behdad Esfahbod  <behdad@gnome.org>

        * gdk/gdkpango.c (draw_error_underline): Fix offset to center the
        underline in requested rectangle. (Ported from pango fix.)

ChangeLog
ChangeLog.pre-2-10
gdk/gdkpango.c

index 2c7ccc079be1975b1f830f294e57035df17f7709..f3882c233c042f0ff92e18fcdac44491ff22ab3e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-30  Behdad Esfahbod  <behdad@gnome.org>
+
+       * gdk/gdkpango.c (draw_error_underline): Fix offset to center the
+       underline in requested rectangle. (Ported from pango fix.)
+
 2006-05-29  Michael Natterer  <mitch@imendio.com>
 
        * gtk/gtkdialog.h: removed forgotten declaration of
index 2c7ccc079be1975b1f830f294e57035df17f7709..f3882c233c042f0ff92e18fcdac44491ff22ab3e 100644 (file)
@@ -1,3 +1,8 @@
+2006-05-30  Behdad Esfahbod  <behdad@gnome.org>
+
+       * gdk/gdkpango.c (draw_error_underline): Fix offset to center the
+       underline in requested rectangle. (Ported from pango fix.)
+
 2006-05-29  Michael Natterer  <mitch@imendio.com>
 
        * gtk/gtkdialog.h: removed forgotten declaration of
index 9375a80545ab365b708bb7b7d10b8f296269f6d3..34df537f1b3d234ffd057621348381139c55bb75 100644 (file)
@@ -278,7 +278,7 @@ draw_error_underline (cairo_t *cr,
   double y_top, y_bottom;
   int i;
 
-  x += (width - width_units * unit_width);
+  x += (width - width_units * unit_width) / 2;
   width = width_units * unit_width;
 
   y_top = y;